<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

	<title>Annotations</title>
	<script type="text/javascript" src="js/mummy.js" charset="utf-8"></script>
</head>

<body>
    <textarea id="json"></textarea>

</body>
<script type="text/javascript" charset="utf-8">

Class({
    $define:function Human(){
        /*[@FirstName: {type:'TEXT'}  {default:"John"}]*/
	this.FirstName;
        /*[@LastName: {type:'TEXT'}  {default:"Doe"}]*/
	this.LastName;
	this.Human = function(f,l){
            this.FirstName=f;
            this.LastName=l;
	}
        
    }
});

Class({
    $extends:Human,
    $define:function Man(){
        this.Sexe="Male";
        this.Man = function(f,l){
            this.Human(f,l);
        }
    }
});

 console.log(Man);


var bob = $(Man).New("Bob","Morane");
//JSON.stringify(h)
document.getElementById("json").innerHTML = JSON.stringify(bob);

Human.prototype.sayHello = function(){console.log("Hello i am "+this.FirstName);}
console.log(bob.sayHello());


</script>

</html>
